#include"NamedPipe.hpp"

int main()
{
    NamedPipe named_pipe(fifo_name);
    named_pipe.OpenForWrite();    
    while(1)
    {
        std::cout << "please enter# ";
        std::string str;
        std::getline(std::cin, str);
        named_pipe.Write(str);
    }
    named_pipe.Close();

    return 0;
}